package o;

import android.graphics.drawable.Drawable;
import android.view.View;
import androidx.appcompat.widget.SwitchCompat;
import java.lang.ref.WeakReference;

public class ps extends SkinAttr {

    static final class d extends fkz<SkinAttr, Drawable> {
        private WeakReference<SwitchCompat> ˋ;

        public /* synthetic */ void ॱ(Object obj) {
            ˋ((Drawable) obj);
        }

        private d(SwitchCompat switchCompat) {
            this.ˋ = new WeakReference(switchCompat);
        }

        public void ˋ(Drawable drawable) {
            SwitchCompat switchCompat = (SwitchCompat) this.ˋ.get();
            if (switchCompat != null) {
                ftr.ˋ(switchCompat, drawable);
            }
        }
    }

    public ps() {
        this.ˎ = 0;
    }

    public void ˎ(View view, boolean z) {
        if (view instanceof SwitchCompat) {
            SwitchCompat switchCompat = (SwitchCompat) view;
            if ("drawable".equals(this.attrValueTypeName) || "color".equals(this.attrValueTypeName)) {
                this.ʽ = "drawable";
                fks.ˎ(view.getContext(), this, new d(switchCompat)).ॱ(z);
            }
        }
    }
}
